import { ipcRenderer } from 'electron';

export const selectDirectory = async () => {
  const path = await ipcRenderer?.sendSync('file-open', {
    properties: ['openDirectory']
  });
  return path;
};

export const selectFile = async () => {
  const path = await ipcRenderer?.sendSync('file-open', {
    properties: []
  });
  return path;
};
